
<template tag="以下文档内容为hycli自动生成">
  <div>
  <el-dialog
    v-model="conf.visible"
    :title="title"
    draggable
    align-center="true"
    width="68%"
    :close-on-click-modal="false"

  >
    <el-tabs v-model="conf.selected">
      <el-tab-pane label="详情" name="aaaok">
<el-row :gutter="24" style="font-size: 0.7rem;">
  <el-col :span="4" class="text-right" style="min-height:26px">编号:</el-col>
  <el-col :span="8" v-text="view.id||'-'" style="min-height:26px" ></el-col>
  <el-col :span="12"></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">标题:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.title+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">需求:</el-col>
  <el-col :span="8" v-text="view.prod_id_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">问题分类:</el-col>
  <el-col :span="8" v-text="view.problem_category_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">问题说明:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.description+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">图片:</el-col>
  <el-col :span="8" style="min-height:26px">
  <el-image style="width:48px" :src="view.description_urls" preview-teleported :fit="contain" :preview-src-list="[view.description_urls]" /></el-col>
  <el-col :span="12"></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">解决方案:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.solution+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">解决人:</el-col>
  <el-col :span="8" v-text="view.resolver_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">状态:</el-col>
  <el-col :span="8" v-text="view.status_label" style="min-height:26px" :class="$js.page.colorful(view.status,'status')" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建人:</el-col>
  <el-col :span="8" v-text="view.creator_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建时间:</el-col>
  <el-col :span="8" v-text="view.create_time||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">业务线:</el-col>
  <el-col :span="8" v-text="view.lob_id_label" style="min-height:26px" ></el-col>
</el-row>
      </el-tab-pane>
    </el-tabs>
    <template #footer>
      <span style="height: 60px"> </span>
    </template>
  </el-dialog>
</div>
</template>
<script>
import gantt from "@/views/cmpnts/gantt.vue"
export default {
   components: {
    gantt,
  },
  data() {
    return {
        conf:{
        visible:false,
        
        selected:"aaaok",
      },
      title:"产品问题详情",
      form:{},
      view: {
        id:"",
        title:"",
        prod_id:"",
        problem_category:"",
        description:"",
        description_urls:"",
        solution:"",
        resolver:"",
        status:"",
        creator:"",
        create_time:"",
        lob_id:"",
        },
      }
  },
  methods: {
  show_cmpnt_aaaoh(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.status = "10"
    this.$refs.cmpnt_aaaoh.show(form)
  },
  show_cmpnt_aaaof(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaof.show(form)
  },
  show_cmpnt_aaaoe(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaoe.show(form)
  },
  show_cmpnt_aaaoi(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.id = (this.bcheck||[]).join(",")
    form.status = "20"
    this.$refs.cmpnt_aaaoi.show_aaaoi(form)
  },
  show_cmpnt_aaaoj(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.id = (this.bcheck||[]).join(",")
    form.status = "0"
    this.$refs.cmpnt_aaaoj.show_aaaoj(form)
  },
  show_cmpnt_aaaog(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaog.show_aaaog(form)
  },
 show(form) {
    this.title = form.title||this.title
    this.conf.visible = true
    this.form = form
   let that = this;
   this.$theia.http
      .get("/ws/prod/problem",form)
      .then((res) => {
        let item = Object.assign({}, res)
        item.prod_id_label = that.$theia.enum.getName("feedback_prod_req",item.prod_id)
        item.problem_category_label = that.$theia.enum.getName("prod_problem_category",item.problem_category)
        item.resolver_label = that.$theia.enum.getName("staff_info",item.resolver)
        item.status_label = that.$theia.enum.getName("prod_problem",item.status)
        item.creator_label = that.$theia.enum.getName("user_account",item.creator)
        item.lob_id_label = that.$theia.enum.getName("my_business_line",item.lob_id)  
        item.title = (item.title||"")  
        item.description_urls = (item.description_urls||"")
        item.create_time = that.$theia.str.dateFormat(item.create_time,'MM/dd')
        that.view = item
      })
      .catch((res) => {
        let code = res.response.status;
        let msg = `产品问题查询失败(${code})`;
        that.$notify.error({ title: "失败", message: msg, duration: 5000 });
      });
  },
  },
};
</script>
<style scoped>
/deep/.el-step__title{
    font-size: 0.8rem;
}
.steps{
  margin-top:8px;
  margin-bottom:  16px;
}
</style>